#! /bin/tcsh
# Removes the DOS-style carriage return from all files in this directory with 
# the extension given in the first argument (no args will remove the return 
# from all files).

foreach f (*$1*)
	sed -e 's/\r$//' $f > $f.new
	cp -f $f.new $f
	\rm $f.new
end
